<?php
if (!defined('IN_ZWS')) exit();

class InfoViewModel extends ViewModel {
	public $viewFields = array('User' => array('id', 'username', 'password', 'email', 'cip', 'ctime', 'cptime', 'salt', '_type' => "LEFT"),
		'UserCredit' => array('integration', 'credit', 'clock', 'ilock', '_on' => 'UserCredit.uid=User.id', '_type' => "LEFT"),
		'UserInfo' => array('name', 'sex', 'age', 'mobile', 'site', 'address', 'zip', 'intro','avatar', '_on' => 'UserInfo.uid=User.id', '_type' => "LEFT"),
		/**
		 * 'UserLog' => array('type', 'ip', 'time', 'status', '_on' => 'UserLog.uid=User.id', '_type' => "LEFT"),
		 */
		);
}